<%@ page language="java" import="java.util.*"
	contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<jsp:include page="header.jsp"></jsp:include>
<body>
	<div id="main-content">
		<h2>
			欢迎 ${sessionScope.user.username}
		</h2>

		<div class="clear"></div>

		<div class="content-box">

			<div class="content-box-header">
				<h3>
					修改教工信息
				</h3>

				<div class="clear"></div>
			</div>
			<div class="content-box-content">
				<div class="tab-content default-tab" id="tab1">
					<s:actionerror />
					<s:debug></s:debug>
					<form action="teacher_add.action" method="post" id="myform">
						<input type="hidden" name="submitFlag" />
						<fieldset>
							<p>
								<label>
									登陆用户名
								</label>
								<input class="text-input small-input" type="text" id="workNum"
									name="workNum" />
								<span id="u_msg" class="input-notification attention png_bg"></span>
							</p>
							<p>
								<label>
									密码
								</label>
								<input class="text-input small-input" type="password"
									id="password" name="password" />
								<span id="p_msg" class="input-notification attention png_bg"></span>
							</p>
							<p>
								<label>
									姓名
								</label>
								<input class="text-input small-input" type="text" id="name"
									name="name" />
								<span id="r_msg" class="input-notification attention png_bg"></span>
							</p>
							<p>
								<label>
									性别
								</label>
								<input type="radio" name="sex" value="男" checked="checked" />
								男
								<input type="radio" name="sex" value="女" />
								女
								<span id="r_msg" class="input-notification attention png_bg"></span>
							</p>
							<p>
								<label>
									职称
								</label>
								<input class="text-input small-input" type="text" id="title"
									value="${requestScope.teacher.title}" name="title" />
								<span id="r_msg" class="input-notification attention png_bg"></span>
							</p>
							<p>
								<label>
									学历
								</label>
								<input class="text-input small-input" type="text" id="edu"
									name="edu" />
								<span id="r_msg" class="input-notification attention png_bg"></span>
							</p>
							<p>
								<label>
									学位
								</label>
								<input class="text-input small-input" type="text" id="degree"
									name="degree" />
								<span id="r_msg" class="input-notification attention png_bg"></span>
							</p>
							<p>
								<label>
									联系方式
								</label>
								<input class="text-input small-input" type="text" id="telephone"
									name="telephone" />
								<span id="r_msg" class="input-notification attention png_bg"></span>
							</p>
							<p>
								<label>
									E-mail
								</label>
								<input class="text-input small-input" type="text" id="email"
									name="email" />
								<span id="r_msg" class="input-notification attention png_bg"></span>
							</p>
							<p>
								<label>
									所属方向
									<s:property value='#research.rese' />
								</label>
								<select name="research_id">
									<s:iterator value="#request.researchs" var="research">
										<option value="<s:property value='#research.id' />"
											<s:if test='#research.id == #request.topic.research.id' >selected</s:if>>
											<s:property value='#research.name' />
										</option>
									</s:iterator>
								</select>
								<span id="p_msg" class="input-notification attention png_bg"></span>
							</p>
							<p>
								<label>
									指导人数
								</label>
								<input class="text-input small-input" type="text"
									id="studentCount" name="studentCount" />
								<span id="r_msg" class="input-notification attention png_bg"></span>
							</p>

							</p>

							<p>
								<input class="button" type="submit" id="dosubmit" value="添加" />
							</p>
						</fieldset>
						<div class="clear"></div>
					</form>

				</div>

			</div>
		</div>


		<jsp:include page="foot.jsp"></jsp:include>

	</div>
	<script type="text/javascript">
$(document).ready(function() {

	$("#dosubmit").click(function() {
			$("#myform").submit()
		
})
</script>
</body>
</html>
